import { Navigate } from 'react-router-dom'
import type { RouteObject } from 'react-router-dom'
import { lazy } from 'react'
// pages element
const MusicList = lazy(() => /* webpackChunkName: 'MusicList' */ import('@/pages/musicList'))

const routes: RouteObject[] = [
  {
    path: '/',
    element: <Navigate to="/musicList"></Navigate>
  },
  {
    path: '/musicList',
    element: <MusicList />
  }
]
export default routes
